package cn.edu.lcu.cs.javaprogramming.enumdemo;

import lombok.Getter;

/**
 * 性别枚举类型
 *
 * @author ling
 * @date 2022/5/1 16:21
 */
@Getter
public enum Gender {
    MAN("男", 0), WOMAN("女", 1);

    private Gender(String name, int value) {
        //super(name, value);
        this.value = value;
        this.name = name;
    }

    private int value;

    private String name;

    @Override
    public String toString() {
        return name;
    }

}
